package com.qiong.mvnbook.account.captcha;

import javax.security.auth.login.AccountException;
import java.util.List;

public interface AccountCaptchaService {

    String generateCaptchaKey();

    byte[] generateCaptchaImage(String captchaKey) throws AccountException;

    boolean validateCaptcha(String captchaKey, String captchaValue) throws AccountException;

    List<String> getPreDefinedTexts();

    void setPreDefinedTexts(List<String> preDefinedTexts);

}
